<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE>
<html>
	<head>
		<title>我的信息</title>
		
		<smLink1></smLink1>
		<smLink2></smLink2>
		
		<smScript1></smScript1>
		<smScript2>
			<script type="text/javascript" src="<%=basePath%>js/lib/jquery/jquery-validation/jquery.validate.min.js"></script>
			<script type="text/javascript" src="<%=basePath%>js/lib/jquery/jquery-validation/localization/messages_zh.min.js"></script>
			<script type="text/javascript" src="<%=basePath%>js/jsp/user/my.js"></script>
		</smScript2>
	</head>

	<body>
		<div id="breadcrumbs" class="breadcrumbs ace-save-state">
			<ul class="breadcrumb">
				<li>
					<span>我的信息</span>
				</li>
			</ul>
		</div>
	
		<div class="page-content">
			<div class="row">
				<div class="col-xs-7">
					<form id="user_form" class="form-horizontal" role="form" method="post" action="<%=basePath%>web/user/my.html">
						<div class="form-group">
							<label class="col-xs-3 control-label no-padding-right" for="loginid">账号</label>
	
							<div class="col-xs-9">
								<input id="loginid" name="loginid" class="col-md-7" type="text" value="${resultVo.result.loginid}" readonly="readonly" placeholder="账号">
							</div>
						</div>

						<div class="space-1"></div>

						<div class="form-group">
							<label class="col-xs-3 control-label no-padding-right" for="login_name">姓名</label>

							<div class="col-xs-9">
								<input id="login_name" name="loginName" class="col-md-7" type="text" value="${resultVo.result.loginName}" placeholder="姓名">
							</div>
						</div>
						
						<div class="space-1"></div>

						<div class="form-group">
							<label class="col-xs-3 control-label no-padding-right" for="colliery_no">企业编码</label>

							<div class="col-xs-9">
								<input id="colliery_no" name="collieryNo" class="col-md-7" type="text" value="${resultVo.result.collieryNo}" placeholder="企业编码">
							</div>
						</div>

						<div class="space-1"></div>

						<div class="form-group">
							<label class="col-xs-3 control-label no-padding-right" for="industry_code">所属行业</label>

							<div class="col-xs-9">
								<select id="industry_code" name="industryCode" class="col-md-7">
									<option value="">请选择</option>
									<option <c:if test="${resultVo.result.industryCode eq 'A'}">selected="selected"</c:if> value="A">煤矿</option>
									<option <c:if test="${resultVo.result.industryCode eq 'B'}">selected="selected"</c:if> value="B">非煤矿山</option>
									<option <c:if test="${resultVo.result.industryCode eq 'C'}">selected="selected"</c:if> value="C">危化烟花爆竹</option>
									<option <c:if test="${resultVo.result.industryCode eq 'D'}">selected="selected"</c:if> value="D">职业健康和工贸</option>
									<option <c:if test="${resultVo.result.industryCode eq 'E'}">selected="selected"</c:if> value="E">公共</option>
									<option <c:if test="${resultVo.result.industryCode eq 'F'}">selected="selected"</c:if> value="F">八大行业</option>
									<option <c:if test="${resultVo.result.industryCode eq 'X'}">selected="selected"</c:if> value="X">其他</option>
								</select>
							</div>
						</div>

						<div class="space-1"></div>

						<div class="form-group">
							<label class="col-xs-3 control-label no-padding-right" for="is_admin">用户类型</label>

							<div class="col-xs-9">
								<select id="is_admin" name="isAdmin" class="col-md-7">
									<option value="">请选择</option>
									<option <c:if test="${resultVo.result.isAdmin eq '1'}">selected="selected"</c:if> value="1">管理员</option>
									<option <c:if test="${resultVo.result.isAdmin eq '0'}">selected="selected"</c:if> value="0">普通用户</option>
								</select>
							</div>
						</div>

						<div class="space-1"></div>

						<div class="form-group">
							<label class="col-xs-3 control-label no-padding-right" for="is_leader">是否为领导</label>

							<div class="col-xs-9">
								<select id="is_leader" name="isLeader" class="col-md-7">
									<option value="">请选择</option>
									<option <c:if test="${resultVo.result.isLeader eq '1'}">selected="selected"</c:if> value="1">是</option>
									<option <c:if test="${resultVo.result.isLeader eq '0'}">selected="selected"</c:if> value="0">否</option>
								</select>
							</div>
						</div>

						<div class="space-1"></div>

						<div class="clearfix form-actions">
							<div class="col-md-offset-3 col-md-9">
								<button name="updateUserBtn" class="btn btn-info" type="submit">
									<i class="ace-icon iconfont icon-refresh"></i>修改
								</button>
	
								&nbsp; &nbsp; &nbsp;
								
								<button class="btn" type="reset">
									<i class="ace-icon iconfont icon-reset"></i>重置
								</button>
							</div>
						</div>
					</form>
				</div>
				
				<div class="col-xs-5">
					<div class="col-xs-12 f-s-14 red">数据校验如下：</div>
					
					<div class="col-xs-12">
						<div class="alert alert-warning m-0 m-t-5 p-0">
							<ol class="validate-ol f-s-12">
								<li>1、姓名，必填；</li>
								<li>2、企业编码，非必填；</li>
								<li>3、所属行业，必选；</li>
								<li>4、用户类型，必选；</li>
								<li>5、是否为领导，必选。</li>
							</ol>
						</div>
					</div>
					
					<div class="col-xs-12">
						<div id="validate_container" class="display-none alert alert-danger m-0 m-t-5 p-0">
							<ul class="validate-ul f-s-12"></ul>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>